#include "../app/app_message.h"
#include "../thirdparty/log/log.h"

int main(void)
{
    char *json_str = "{\"conn_type\":1,\"id\":\"5858\",\"msg\":\"61626364\"}";

    char buff[100] = {0};
    int buff_len = 0;
    buff_len = app_message_jsonToChars(json_str, buff, 100);
    log_debug("chars:%.*s,len:%d", buff_len, buff, buff_len);

    char *json = app_message_charsToJson(buff, buff_len);
    log_debug("json:%s", json);
    free(json);
    return 0;
}